//
//  cmd_export.h
//  edrift
//
//  Created by Yudi Rosandi on 1/8/13.
//
//

#ifndef edrift_cmd_export_h
#define edrift_cmd_export_h

/**
 command: export domain.array alias
 */

void cmd_export(istringstream& ss) {
  string buf,nm;
  if(!(ss>>buf>>nm)) throw "invalid export command: export domain.array alias";
  
  Buffer A;
  get_buffer(A,buf);
  for(int i=0;i<(int)fd.size();i++) {
    fd[i]->solver->Link(nm,A.ptr);
  }

}

#endif
